package com.mmc.mapper.email;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.mmc.domain.email.MailBean;
@Repository
public interface EmailMapper {
	/**
	 * 通过用户Id获取所有的邮件
	 * @param userId
	 * @return
	 */
	public List<MailBean> getAllMails(String userId);
	/**
	 * 保存
	 */
	public void saveEmail(MailBean mailBean);
	/**
	 * 修改
	 * @param mailBean
	 */
	public void updateEmail(MailBean mailBean);
	/**
	 * 删除
	 */
	public void deleteEmail(String id);
	/**
	 * 通过id获取
	 * @param id
	 * @return
	 */
	public MailBean getById(String id);
}
